import React, { Component } from 'react'

export default class Test extends Component {
  state = {
    count: 0
  }
  changeCount = (num) => {
    this.setState({
      count: this.state.count + num
    })
  }
  render () {
    return (
      <div>
        <h2>{this.state.count}</h2>
      </div>
    )
  }
}
